package com.heart.eurekaclient;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 服务提供方
 *
 * @author: heart
 * @date: 2018/6/20
 */
@RestController
public class HelloServiceProvider {

    @PostMapping("/hello")
    public String sayHello(@RequestParam("name") String name) {
        return "hello," + name;
    }

}
